import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import { Button } from 'vant';
import 'vant/lib/index.css';
import 'lib-flexible/flexible.js'
import router from "@/router"
import {
  Tabbar, TabbarItem, Icon, NavBar, Uploader, Progress, Popup, Loading, Field, Form, CellGroup, Search, Checkbox, CheckboxGroup
  , Tab, Tabs, Swipe, SwipeItem, Dialog
} from 'vant';
import Directives from '@/command/index.js'

const app = createApp(App)
app.use(Directives)     // 全局注册   // 注册指令调用了 install 函数

app.use(router)
app.use(Button);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Icon);
app.use(NavBar);
app.use(Uploader);
app.use(Progress);
app.use(Popup);
app.use(Loading);
app.use(Field);
app.use(Form);
app.use(CellGroup);
app.use(Search);
app.use(Checkbox);
app.use(CheckboxGroup);
app.use(Tab);
app.use(Tabs);
app.use(Swipe);
app.use(SwipeItem);
app.use(Dialog)

app.mount('#app')
